#coding=utf-8
'''
Created on 2013-9-8

@author: Ben

战斗数据
'''

#是否已进入战场
inBattle = False
#是否已获取过战斗信息
haveBattleInfo = False
#当前查看的战场id
battleId = ''
#免费幻影次数
freePhantomCount = 0

def init(data):
    global freePhantomCount
    if 'freePhantomCount' in data:
        freePhantomCount = data['freePhantomCount']

'''
退出游戏清理
'''
def clear():
    global inBattle
    global haveBattleInfo
    inBattle = False
    haveBattleInfo = False